package agwebrtc

import (
	"ex/interfaces"
)

type B struct {
	a interfaces.Adapter // 存储 AInterface，而不是 AType
}

func (b *B) SetA(a interfaces.Adapter) {
	b.a = a
}

func (b *B) SendString(channelId string, msg string) {
	print(channelId, msg)
}

func (b *B) onMsg() {
	b.a.ForwardWebRTCRequest("1", "nihao")
}
